package com.yshkj.payment.dto;

import com.yshkj.payment.entity.medicinal.Producer;
import lombok.Data;

/**
 * Created by 唐旭 on 2016/10/2.
 */
@Data
public class ProducerDto {
    //厂商uuid
    private String uuid;
    //厂家名称
    private String name;
    //厂家地址
    private String address;

    public ProducerDto() {
    }

    public ProducerDto(Producer producer) {
        this.uuid = producer.getUuid();
        this.name = producer.getName();
        this.address = producer.getAddress();
    }

    public void update(Producer producer) {
        producer.setName(this.getName());
        producer.setAddress(this.address);
    }
}
